<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<meta http-equiv="pragma" content="no-cache" />
		<meta http-equiv="cache-control" content="no-cache" />
		<meta http-equiv="expires" content="0" />
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3" />
		<meta http-equiv="description" content="This is my page" />
		<link href="css/main.css" rel="stylesheet" type="text/css" />
		<link href="css/style.css" rel="stylesheet" type="text/css" />
		<link href="css/seller.css" rel="stylesheet" type="text/css" />
		<title>发布商品</title>
	</head>

	<body>
		<div align="center">
			<table border="0" cellpadding="0" cellspacing="0" width="910">
				<tbody>
					<tr>
						<td width="100% "></td>
					</tr>
				</tbody>
			</table>
		</div>

		<div id="layout">
			<%@include file="/WEB-INF/common/header/header.jsp"%>
			<div id="seller_main">

				<%@include
					file="/WEB-INF/jsp/seller/seller_common/seller_left_nav.jsp"%>

				<div id="seller_main_right">

					<div id="seller_right_top">
						当前位置：商品中心 &gt;&gt;
						<a href="sellerProductCenter!getProductListOperator.do">商品记录</a>
					</div>

					<div id="seller_product_title">
						&nbsp;&nbsp;
						<a href="sellerProductCenter!getProductListOperator.do">全部商品</a>&nbsp;&nbsp;
						<a href="sellerProductCenter!getNotliveProductList.do">未激活商品</a>&nbsp;&nbsp;
						<a href="sellerProductCenter!getFinishedProductList.do">下架商品</a>&nbsp;&nbsp;
						<a href="sellerProductCenter!getSellProductList.do">现售商品</a>
					</div>

					<div id="seller_product_list">
						<form action="">
							<table width="700" border="0" cellpadding="0" cellspacing="0"
								class="seller_product_list">
								<tr>
									<td width="131" height="31">
										商品名称
									</td>
									<td width="49">
										总数
									</td>
									<td width="51">
										卖出
									</td>
									<td width="84">
										市场价
									</td>
									<td width="75">
										特惠价
									</td>
									<td width="60">
										单件积分
									</td>
									<td width="98">
										发布\上架日期
									</td>
									<td width="80">
										当前状态
									</td>
									<td width="68">
										操作
									</td>
								</tr>
								<s:iterator value="productList">
									<tr>
										<td height="52">
											<s:property value="name" />
										</td>
										<td>
											<s:property value="totalNumber" />
										</td>
										<td>
											<s:property value="sale" />
										</td>
										<td>
											<s:property value="commonPrice" />
										</td>
										<td>
											<s:property value="especialPrice" />
										</td>
										<td>
											<s:property value="score" />
										</td>
										<td>
											<s:date name="sellTime" format="yyyy-MM-dd" />
										</td>
										<td>
											<s:if test="activity == 0">
											未激活
											</s:if>
											<s:elseif test="activity == 1">
											已激活
											</s:elseif>
											<s:else>
											已停用
											</s:else>
										</td>
										<td>
											<s:if test="activity == 0">
												<a
													href="sellerProductCenter!activityOperator.do?id=<s:property value="id"/>">激活该商品</a>
											</s:if>
											<s:elseif test="activity == 1">
												<a
													href="sellerProductCenter!stopProduct.do?id=<s:property value="id"/>">停用该商品</a>
											</s:elseif>
											<s:else>
												<a href="#">重新发布</a>
											</s:else>
											<a href="#">修改</a>
										</td>
									</tr>
								</s:iterator>
								<tr>
									<td colspan="8">
										<jsp:include page="/WEB-INF/jsp/page.jsp">
											<jsp:param name="url"
												value="sellerProductCenter!getProductListOperator.do" />
										</jsp:include>
									</td>
								</tr>
							</table>
						</form>
					</div>

				</div>

			</div>
			<!--seller_main  end-->
			<%@ include file="/WEB-INF/common/footer/footer.jsp"%>
		</div>
	</body>
</html>

